package com.emenu.common;

import java.io.FileInputStream;
import java.util.Properties;

public class Configuration {
	private Properties propertie;
	private FileInputStream inputFile;

	public Configuration() {
		propertie = new Properties();
		try {
			propertie.load(Configuration.class
					.getResourceAsStream("/assets/sys.properties"));
			
		} catch (Exception e) {
			System.out.println("装载文件--->失败!");
			e.printStackTrace();

		}

	}

	public String getValue(String key) {
		if (propertie.containsKey(key)) {
			String value = propertie.getProperty(key);// 得到某一属性的值
			return value;
		} else
			return "";
	}

}
